<?php
/**
 * Created by PhpStorm.
 * User: xuke
 * Date: 7/26/15
 * Time: 7:39 AM
 */
use Illuminate\Database\Seeder;

class ProjectsTableSeeder extends Seeder {

    public function run() {
        DB::table('projects')->delete();

        $projects = array(
            ['id' => 1, 'name' => 'Project 1', 'slug' => 'project-1', 'created_at' => new DateTime, 'updated_at' => new DateTime],
            ['id' => 2, 'name' => 'Project 2', 'slug' => 'project-2', 'created_at' => new DateTime, 'updated_at' => new DateTime],
            ['id' => 3, 'name' => 'Project 3', 'slug' => 'project-3', 'created_at' => new DateTime, 'updated_at' => new DateTime],
        );

        DB::table('projects')->insert($projects);
    }
}